
void RF12_Init(void);
void RFM12B_SetTransmitMode(void);
void RFM12B_SetReceiveMode(void);


unsigned char RFM12B_WritePacket(unsigned char *packet, int len);

/*return values: 0 - no data, 1 - processing data, 2 - packed received*/
unsigned char RFM12B_ReadPacket(unsigned char **packet, unsigned char *len);

unsigned char RFM12B_SendPacketAndWaitForReply(unsigned char *packet_to_send,unsigned char packet_to_send_len, unsigned char **received_packet,unsigned char *received_packet_len);








